package com.intretech.umsin.system.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.intretech.umsin.common.web.ApiResult;
import com.intretech.umsin.system.param.SysUserParam;
import com.intretech.umsin.system.vo.SysUserVo;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
* @version V1.0
* 用户信息: sys_user 为其他服务提供内部调用接口 API.
* @InterfaceName: SysUserApi
* @Description: 用户信息:sys_user 为其他服务提供内部调用接口 API.
* @author: 李启联
* @date:   2022-8-16 16:44:08
* @Copyright: Copyright (c) 2022
*/

public interface SysUserApi {

    @GetMapping("/system/sysuser/get/{id}")
    public ApiResult<SysUserVo> querySysUserById(@PathVariable("id") String id);

    @PostMapping("/system/sysuser/listByIds")
    public ApiResult<List<SysUserVo>> querySysUserByIds(@RequestBody List<String> ids);

    @PostMapping("/system/sysuser/page/{pageNo}/{pageSize}")
    public ApiResult<IPage<SysUserVo>> querySysUserForPage(@RequestBody SysUserParam params, @PathVariable("pageNo") Integer pageNo, @PathVariable("pageSize") Integer pageSize);

    @PostMapping("/system/sysuser/list")
    public ApiResult<List<SysUserVo>> querySysUserForList(@RequestBody SysUserParam params);

    @PostMapping("/system/sysuser/add")
    public ApiResult<SysUserVo> addSysUser(@RequestBody SysUserVo vo);

    @PostMapping("/system/sysuser/adds")
    public ApiResult<List<SysUserVo>> addsSysUser(@RequestBody List<SysUserVo> voList);

    @PutMapping("/system/sysuser/modify")
    public ApiResult<SysUserVo> modifySysUser(@RequestBody SysUserVo vo);

    @PutMapping("/system/sysuser/modifys")
    public ApiResult<List<SysUserVo>> modifysSysUser(@RequestBody List<SysUserVo> voList);

    @DeleteMapping("/system/sysuser/remove/{id}")
    public ApiResult<Void> removeSysUser(@PathVariable("id") String id);

    @DeleteMapping("/system/sysuser/removes")
    public ApiResult<Void> removesSysUser(@RequestBody List<String> ids);


}